package com.yun.algorithmproblem.leetcode;

public class Leetcode2278 {
	public int percentageLetter(String s, char letter) {
		int sum=s.length();
		int add=0;
		for (int i = 0; i < s.length(); i++) {
			if(letter==s.charAt(i)){
				add++;
			}
		}
		return add*100/sum;
	}
}
